/*
 * @Author: your name
 * @Date: 2019-06-17 16:58:29
 * @LastEditTime: 2021-03-19 15:20:49
 * @LastEditors: zhangYaRan
 * @Description: In User Settings Edit
 * @FilePath: /rw-1231-cms/src/store/getters.js
 */
const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  userId: state => state.user.userId,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  loginTime: state => state.permission.loginTime,
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  permission_routes: state => state.permission.routes,
  errorLogs: state => state.errorLog.logs,
  hospitalLogo: state => state.permission.hospitalLogo,
  hospitalName: state => state.permission.hospitalName,
  indexImg: state => state.permission.indexImg
}
export default getters
